{#{% extends 'Base/main.content.lists.div.html.twig' %}#}
{#{% import 'Base/list_item.twig' as listItem %}#}
{% extends 'Back/Sano/list.creator.html.twig' %}
{% import 'Back/Sano/list.item.twig' as listItem %}
{#默认不能删除和新增#}
{#{% block addBtn %}{% endblock %}#}
{#{% block delBtn %}{% endblock %}#}
{% block tableHead %}
    <tr>
        <th align="" width="5%">选择</th>
        <th align="" width="">{{config.user.label}}</th>
        <th align="" width="">{{config.province.label}}</th>
        <th align="" width="">{{config.city.label}}</th>
        <th align="" width="">{{config.area.label}}</th>
        <th align="" width="">{{config.address.label}}</th>
        <th align="" width="">{{config.lat.label}}</th>
        <th align="" width="">{{config.lon.label}}</th>
        <th align="" width="">{{config.tags.label}}</th>
        <th align="" width="">{{config.isDefault.label}}</th>
        <th align="" width="">{{config.isDel.label}}</th>
        <th align="center" width="8%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.id }}"/></span>
            </td>
            <td align='' width='' id='user_{{ Entity.id }}'>
                {{ listItem.text('user',Entity.user,Entity.id) }}
            </td>
            <td align='' width='' id='province_{{ Entity.id }}'>
                {{ listItem.text('province',Entity.province,Entity.id) }}
            </td>
            <td align='' width='' id='city_{{ Entity.id }}'>
                {{ listItem.text('city',Entity.city,Entity.id) }}
            </td>
            <td align='' width='' id='area_{{ Entity.id }}'>
                {{ listItem.text('area',Entity.area,Entity.id) }}
            </td>
            <td align='' width='' id='address_{{ Entity.id }}'>
                {{ listItem.text('address',Entity.address,Entity.id) }}
            </td>
            <td align='' width='' id='lat_{{ Entity.id }}'>
                {{ listItem.text('lat',Entity.lat,Entity.id) }}
            </td>
            <td align='' width='' id='lon_{{ Entity.id }}'>
                {{ listItem.text('lon',Entity.lon,Entity.id) }}
            </td>
            <td align='' width='' id='tags_{{ Entity.id }}'>
                {{ listItem.text('tags',Entity.tags,Entity.id) }}
            </td>
            <td align='' width='' id='isDefault_{{ Entity.id }}'>
                {{ listItem.switch('isDefault',Entity.isDefault,Entity.id) }}
            </td>
            <td align='' width='' id='isDel_{{ Entity.id }}'>
                {{ listItem.switch('isDel',Entity.isDel,Entity.id) }}
            </td>
            <td align='' width=''>
                {{ listItem.edit('UserAddress','',Entity.id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

